package com.antdesignbackend.backend.service.impl;

import com.antdesignbackend.backend.entity.Disinfect;
import com.antdesignbackend.backend.entity.entityVo.DisinfectVo;
import com.antdesignbackend.backend.mapper.DisinfectMapper;
import com.antdesignbackend.backend.service.DisinfectService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DisinfectServiceImpl extends ServiceImpl<DisinfectMapper, Disinfect> implements DisinfectService {
    @Autowired
    DisinfectMapper disinfectMapper;

    @Override
    public List<DisinfectVo> search(QueryWrapper<DisinfectVo> queryWrapper, Page<DisinfectVo> page) {
        return disinfectMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<DisinfectVo> queryWrapper) {
        return disinfectMapper.count(queryWrapper);
    }
}
